/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package factories;

import strategies.ShareStrategy;
import entityclasses.LinkTextShare;
import entityclasses.Share;
import entityclasses.PlainTextShare;

/**
 *
 * @author umutcan
 */
 public class ShareStrategyFactory {
    
     public static ShareStrategy createShareStrategy(int type)
     {
         switch (type)
         {
             case Share.PlainText:
                 return new PlainTextShare();
             case Share.LinkText:
                 return new LinkTextShare();
             default:
                 return null;
         }
     }
}
